<%@ page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<jsp:include page="header.jsp" />

<%
// Get Vector of states
support s = new support();
String path2 = config.getServletContext().getRealPath("universities.txt");
Vector universities = s.getUniversities(path2);

String state;
Vector tuple;
%>

	<div id="content" class="expand">
		<h2>Graduate Application</h2>

		<p>Select the location of your university</p>

			<div id="c1">
				<%
				for (int i = 0; i < 46; i++) {
					tuple = (Vector)universities.get(i);
					state = (String)tuple.get(0);
				%>
				    <html:link action="students/degreeLocation">
					<html:param name="location" value='<%=  state  %>'/> <%= state %>
					</html:link> <br/>
				<%
				}
				%>
			</div>
			
			<div id="c2">
				<%
				for (int i = 46; i < 92; i++) {
					tuple = (Vector)universities.get(i);
					state = (String)tuple.get(0);
				%>
				    <html:link action="students/degreeLocation">
					<html:param name="location" value='<%=  state  %>'/> <%= state %>
					</html:link> <br/>
				<%
				}
				%>
			</div>
			
			<div id="c3">
				<%
				for (int i = 92; i < universities.size(); i++) {
					tuple = (Vector)universities.get(i);
					state = (String)tuple.get(0);
				%>
				    <html:link action="students/degreeLocation">
					<html:param name="location" value='<%=  state  %>'/> <%= state %>
					</html:link> <br/>
				<%
				}
				%>
			</div>
			
	 	</div>
	 	
</body>
</html>